package com.caiheng.api.entity.event;

import com.baomidou.mybatisplus.annotation.*;
import com.caiheng.api.entity.estate.EstateBuild;
import com.caiheng.api.entity.estate.EstateBuildFloor;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;

/**
 * 区域的详情对象 event_clean_area_info
 *
 * @author ruoyi
 * @date 2024-01-02
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("event_clean_area_info")
public class EventCleanAreaInfo implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 区域id
     */
    private Integer areaId;

    /**
     * 楼栋id
     */
    private Integer buildId;

    /**
     * 楼层id
     */
    private Integer floorId;

    /**
     * 区域名称
     */
    private String areaName;

    /**
     * 类型 0 - 楼宇的  1 - 自定义指定区域
     */
    private Integer buildType;

    /**
     * 排序索引
     */
    private Integer sort;



    @TableField(exist = false)
    private EstateBuildFloor buildFloor;

    @TableField(exist = false)
    private EstateBuild build;

    @TableField(exist = false)
    private Integer opState;

    @TableField(exist = false)
    private Integer eventType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private Date handleTime;
}
